<?php echo form_tag_for($accountSupplierForm,$accountSupplierForm->getUrl(),array('id'=>'formAccountSupplier',)); ?>
<?php if((! $accountSupplierForm->isValid())&&($accountSupplierForm->isBound())):?>
  <ul class="error_list"><li>Errors on supplier form</ul>
    <?php echo $accountSupplierForm->renderGlobalErrors()?>
<?php endif;?>
<?php if(! $accountSupplierForm->isNew()):?>
<div style="vertical-align:top;">
  <div class="separator">
    Reports: 
  </div>
</div>
<?php endif;?>
<div class="infobox1" style="height:150px;">
   <?php include_partial('supplier_fields',array('accountSupplierForm'=>$accountSupplierForm,))?>
</div>
<div class="form_buttons">
  <input type="submit" value="Save" />
  <?php if(! $accountSupplierForm->isNew()):?>
    | <input type="button" value="Delete" id="buttonDeleteAccountSupplier"/>
  <?php endif;?>
  | <input type="button" value="Reset" id="buttonResetAccountSupplier" />
</div>
</form>


<script language="javascript">
  $(document).ready(
  function(){
  accountSupplierSetupForm();
  accountSupplierSetupResetButton('<?php echo $accountSupplierForm->getResetUrl($contact); ?>','<?php echo $accountSupplierForm->isNew()?'Reset form for new Supplier account?':'Reset Supplier account for "'.$contact->getListName().'"?'?>');
  <?php if(! $accountSupplierForm->isNew()):?>
    accountSupplierSetupDeleteButton('<?php echo $accountSupplierForm->getDeleteUrl(); ?>','<?php echo 'Delete Supplier account for "'.$contact->getListName().'"?'?>');
  <?php endif;?>
  });
</script>